<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%-- Add portlet taglibs to jsp --%>
<%@ page import="javax.portlet.*"%>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>

<portlet:defineObjects />
<b>
    This is the view page of MVC Sample
</b>
<%-- @Deprecated --%>
<%--
<script type="text/javascript" src='<%= renderRequest.getContextPath() + "/scripts/common.js" %>' ></script>
--%>
<%-- Using contextPath from request --%>
<script type="text/javascript" src='/${requestScope.contextPath}/scripts/common.js' ></script>

<form name="<portlet:namespace/>list" action="<portlet:actionURL/>" method="POST">
<input type="hidden" name="screenId" value="List"/>
<input type="hidden" name="eventId" value="default"/>
<table width="100%">
<tr>
    <td align="right">
        <input type="button" name="home" value="Home" onclick='submitAction("<portlet:namespace/>","list","goHome");'/>
    </td>
</tr>
</table>
    <input type="text" disabled name="T1" size="20" style="background-color: #C0C0C0"><input type="checkbox" name="advSearchChk" value="ON" checked onchange='goNewURL(document.forms[0].advSearchChk.value,"list.html")'>Advanced 
    search<br>
    <input type="radio" value="V1" checked name="R1">Match all of the following
    <input type="radio" name="R1" value="V2">Match any of the following<br>
&nbsp;
    <table border="1" width="48%" cellspacing="0" cellpadding="0">
        <tr><td>
    <table border="0" width="100%" id="table2" cellspacing="0" cellpadding="0">
        <tr>
            <td width="143"><select size="1" name="D1">
            <option>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
            <option>Field 1</option>
            </select></td>
            <td width="108"><select size="1" name="D2">
            <option>contains</option>
            <option>doesn't contain</option>
            </select></td>
            <td width="128" colspan="3"><input type="text" name="T2" size="55"></td>
            <td>
    <p align="center">
    <input type="submit" value="+" name="B2"></td>
            <td width="6%">
            <p align="center">
    <input type="submit" value="-" name="B3" size=12></td>
        </tr>
        <tr>
            <td width="143"><select size="1" name="D3">
            <option>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
            <option selected>Date Field</option>
            </select></td>
            <td width="108"><select size="1" name="D4">
            <option>&nbsp;&nbsp;&nbsp;&nbsp;</option>
            <option>between</option>
            
            </select></td>
            <td width="68" nowrap>
            <input type="text" name="T3" size="12" value="dd/mm/yyyy"></td>
            <td width="31" nowrap>&nbsp;and</td>
            <td width="173" nowrap>
            <input type="text" name="T4" size="12" value="dd/mm/yyyy"></td>
            <td>
    <p align="center">
    <input type="submit" value="+" name="B4"></td>
            <td width="6%">
            <p align="center">
    <input type="submit" value="-" name="B5"></td>
        </tr>
    </table>
    </td></tr>
    </table>
    <p>
    <input type="submit" value="Search" name="B1"></p>
    <table border="0" width="48%" id="table1" cellspacing="0" cellpadding="0">
        <tr>
            <td>
            <p align="right"><input type="submit" value="Export2Excel" name="B1"></td>
        </tr>
    </table>
    <table border="1" width="48%" id="table1" cellspacing="0" cellpadding="0">
        <tr>
            <td width="28" bgcolor="#6699FF">No</td>
            <td width="156" bgcolor="#6699FF">Column1</td>
            <td width="182" bgcolor="#6699FF">Column2</td>
            <td bgcolor="#6699FF">Column3</td>
        </tr>
        <tr>
            <td width="28">
            <p align="right">1</td>
            <td width="156">Trần Đổi</td>
            <td width="182">Mới</td>
            <td>15/3/1989</td>
        </tr>
        <tr>
            <td width="28">
            <p align="right">2</td>
            <td width="156">Nguyễn Văn</td>
            <td width="182">Nhanh</td>
            <td>1/3/1990</td>
        </tr>
    </table>
    <table border="0" width="48%" id="table1" cellspacing="0" cellpadding="0">
        <tr>
            <td>
            <p align="right"><input type="submit" value="Export2Excel" name="B1"></td>
        </tr>
    </table>
</form>